﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Microfinance_Management
{
    public partial class Due_date : Form
    {
        private string m_id;
        public Due_date(string id)
        {
            m_id = id;
            InitializeComponent();
        }

        unsafe private void Due_date_Load(object sender, EventArgs e)
        {
            StringBuilder cust_id = new StringBuilder(30);
            StringBuilder name = new StringBuilder(30);
            StringBuilder state = new StringBuilder(50);
            StringBuilder city = new StringBuilder(50);
            StringBuilder address = new StringBuilder(50);
            StringBuilder tel = new StringBuilder(50);
            StringBuilder mail = new StringBuilder(255);

            Research_dll.GetCustInfo(m_id, cust_id, name, state, city,
                address, tel, mail);
            textBox1.Text = name.ToString();
            textBox9.Text = state.ToString();
            textBox7.Text = city.ToString();
            textBox5.Text = address.ToString();
            textBox2.Text = cust_id.ToString();
            textBox8.Text = tel.ToString();
            textBox14.Text = mail.ToString();
        }
    }
}
